package the.broccoli.setting.service;

import org.wisteria.framework.util.TreeSelected;
import org.wisteria.framework.web.mvc.dto.TreeDTO;
import the.broccoli.setting.dto.DictCondition;
import the.broccoli.setting.entity.Dict;
import org.wisteria.framework.web.mvc.service.ISuperService;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 字典项 服务类
 * </p>
 *
 * @author lei.liu
 * @since 2019-11-27
 */
public interface IDictService extends ISuperService<Dict> {

    List<TreeDTO> getTree();

    List<TreeDTO> getTree(DictCondition condition);

    Dict getByCode(String code);

    String getName(String code);

    String getCode(String constant);

    TreeSelected getTreeSelected(String constant, List<String> selectedIdList);
}
